package org.example.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(value = "other-client", url = "http://localhost:9001")
public interface OtherFeignClient {

    @PostMapping(value = "/getProduct/{id}")
    String getOther(@PathVariable("id") String id);

}
